<#include "/macro.include"/>
<#assign className = table.classNameBo>
<#assign tableRemarks = table.remarks>
<#assign classNameLower = className?uncap_first>

<#macro jspJava value>${r"<%@"}${value}${r"%>"}</#macro>
<#macro jspEl value>${r"${"}${value}}</#macro>

<@jspJava 'page contentType="text/html;charset=UTF-8" language="java"' />
<@jspJava 'include file="/WEB-INF/views/common/taglibs.jspf"' />
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <div class="row">
            <div class="col-md-12">
                <ul class="page-breadcrumb breadcrumb">
                    <lx:navigationtab identity="${classNameLower}"></lx:navigationtab>
                    <li id="breadcrumb-list"><a href="javascript:;">教师管理列表</a></li>
                    <li id="breadcrumb-edit" style="display:none"><a href="javascript:;">新增/修改</a></li>
                </ul>
                <!-- END PAGE TITLE & BREADCRUMB-->
            </div>
        </div>
        <!-- END PAGE HEADER-->

        <@jspJava 'include file="/WEB-INF/views/common/error-ajax-messages.jsp"' />

        <!-- BEGIN PAGE CONTENT-->
        <div class="row">

            <div class="col-md-2">

                <@jspJava 'include file="/WEB-INF/views/common/area.jsp"' />

            </div>

            <div class="col-md-10">
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="fa fa-reorder"></i>${tableRemarks}信息查询</div>
                    </div>
                    <div class="portlet-body form">
                        <!-- BEGIN FORM-->
                        <form name="searchForm" id="searchForm"  class="form-horizontal" method="post" onsubmit="javascript:return false;">
                            <div class="form-body">
                                <div class="row">
                                    <div class="col-md-3">
                                        <div class="form-group">
                                            <label class="control-label col-md-4">科目</label>
                                            <div class="col-md-8">
                                                <select class="form-control" name="subject.id">
                                                    <option value="">--请选择--</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="form-group">
                                            <label class="control-label col-md-4"></label>
                                            <div class="col-md-8">
                                                <input type="text" class="form-control" id="userName" name="userName" placeholder="姓名、身份证号、手机号" maxlength="20" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <div class="col-md-12">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                        <!-- END FORM-->
                    </div>
                </div>
                <shiro:hasPermission name="${module}:${classNameLower}:list">
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-globe"></i>${tableRemarks}信息列表
                        </div>
                        <div class="actions">
                            <shiro:hasPermission name="${module}:${classNameLower}:create">
                                <a class="btn green" href="javascript:;" ><i class="fa fa-plus"></i> 新增</a>
                            </shiro:hasPermission>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <table class="table table-striped table-bordered table-hover table-full-width" style="border-collapse:collapse" id="list">
                            <thead>
                                <tr>
                                <#list table.columns as column>
                                    <th>${column.remarks}</th>
                                </#list>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>

                            </tbody>
                        </table>
                    </div>
                </div>
                </shiro:hasPermission>
            </div>
        </div>
        <!-- END PAGE CONTENT-->
    </div>
</div>
<div id="ajax-modal" class="modal fade modal-scroll" tabindex="-1" data-replace="true" style="OVERFLOW-Y: auto; OVERFLOW-X:hidden;" >
    <div class="modal-header col-md-12">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
        <h4 class="modal-title">  标题 </h4>
    </div>
    <div class="modal-body col-md-12">
        <!-- 具体内容 -->
    </div>
    <div class="modal-footer col-md-12">
        <button type="button" class="btn default" data-dismiss="modal">关闭</button>
        <!-- <button type="button" class="btn blue" id="save">保存</button> -->
    </div>
</div>

<script type="text/javascript" src="<@jspEl 'ctx'/>/static/lirenkj/scripts/${module}/${classNameLower}/${classNameLower}-table-search.js"></script>
<script type="text/javascript">

    $(function(){
        var _modal = $('#ajax-modal');
        $("#click_btn").click(function(){
            var id = $(this).attr("data-id");
            var url = ctx+'/${module}/${classNameLower}/ajax/preShow';

            if(id!=undefined && id!=''){
                url += "?id="+id;
            }

            _modal.load(url , '',
            function(){
                _modal.modal().css({width: '1000','margin-left':function () { return -($(this).width() / 2);}}).unbind("hide.bs.modal").on('hide.bs.modal',
                function () { });
            });
        });
    });

</script>